var _radarUtil = require("../../utils/radar-util");

Component({
    externalClasses: [ "service-custom" ],
    properties: {
        text: {
            type: String,
            value: "遇到问题？联系客服解答"
        },
        mode: {
            type: String,
            value: "service"
        },
        fixed: Boolean,
        position: {
            type: String,
            value: "bottom"
        }
    },
    ready: function() {
        var e = this;
        global.user.getTokens(function(t) {
            t && t.accesstoken || e.setData({
                mode: "contact"
            });
        });
    },
    methods: {
        onTap: function() {
            "contact" !== this.data.mode && (0, _radarUtil.radarService)();
        }
    }
});